package paytreasure.util;

import com.alibaba.fastjson.serializer.ValueFilter;


/**
 * 常量工具类
 * @author liujiwei
 *
 */
public class ConstantUtil{
	
	/**
	 * 返回状态成功
	 */
	public static final String RESULT_SUCCESS = "1";

	/**
	 * 返回状态成功
	 */
	public static final String RESULT_ERROR ="0";
	
	/**
	 * 账号权限不足
	 */
	public static final String RESULT_AUTHORITY_ERROR="2";
	
	/**
	 * 返回状态其它
	 */
	public static final String RESULT_OTHER	="3";
	
	/**
	 * 账号重新登录
	 */
	public static final String RESULT_REGLOGIN="2001";
	
	/**
	 * 账单日期
	 * */
	public static final String[] days = new String[] {"今天","昨天"};
	public static final String[] week = new String[] {"周日","周一","周二","周三","周四","周五","周六"};
	
	/**
	 * 返回JSON null转为 ""
	 * */
	public static ValueFilter vFilter = new ValueFilter() {
		public Object process(Object obj, String str, Object val) {
			if(val==null) return "";
		    return val;
		}
	};
	
}
